<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <base href="<%=basePath%>"/>
    
    <title>My JSP 'showUserList.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache"/>
	<meta http-equiv="cache-control" content="no-cache"/>
	<meta http-equiv="expires" content="0"/>    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
	<meta http-equiv="description" content="This is my page"/>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css"/>
	-->

  </head>
  
  <body>
    <h1>用户列表</h1>
    <table width="600">
    <tr><th>用户名</th><th>用户头像</th><th>下载</th></tr>
    <c:forEach items="${userlist }" var="user">
    <tr><td><font color="blue">${user.username }</font></td>
    <td><img src="/strutsFileUpAndDown/file/${user.newfielname }"/></td>
    <td><a href="/strutsFileUpAndDown/downloadFile.do?userid=${user.userid }">点击下载</a></td></tr>
    
    </c:forEach>
    </table>
  </body>
</html>
